//
//  LLGoodsBasicViewModel.h
//  lrlzapp
//
//  Created by dl on 16/3/2.
//  Copyright © 2016年 lrlz. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "LLGoodsBasic.h"

@interface LLGoodsBasicViewModel : NSObject

@property(nonatomic, strong) LLGoodsBasic *goodsBasic;

@property(nonatomic, assign, readonly) BOOL isTmallGoods;
@property(nonatomic, assign, readonly) BOOL isSoldOut;

@property(nonatomic, strong, readonly) NSString *goodsTypeStr;
@property(nonatomic, strong, readonly) NSAttributedString *titleAttr;
@property(nonatomic, strong, readonly) NSAttributedString *priceAttr;
@property(nonatomic, assign, readonly) CGFloat priceLabelWidth;
@property(nonatomic, strong, readonly) NSString *salesStr;

@property(nonatomic, strong, readonly) NSArray *tagViewModels;

@end


@interface LLgoodsTagViewModel : NSObject

@property(nonatomic, assign, readonly) BOOL hiden;
@property(nonatomic, strong, readonly) NSString *tagStr;
@property(nonatomic, assign, readonly) CGRect tagFrame;

+ (LLgoodsTagViewModel *)modelWithTagStr:(NSString *)tagStr tagFrame:(CGRect)tagFrame;

@end